package org.jeecg.modules.sggg.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @Description: 居民表
 * @Author: jeecg-boot
 * @Date: 2022-10-17
 * @Version: V1.0
 */
@Data
@TableName ("sg_member")
@Accessors (chain = true)
@EqualsAndHashCode (callSuper = false)
@ApiModel (value = "sg_member对象", description = "居民表")
public class SgMember implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId (type = IdType.ASSIGN_ID)
    @ApiModelProperty (value = "主键")
    private String id;
    /**
     * 三方主键
     */
    @ApiModelProperty (value = "三方主键")
    private String subId;
    /**
     * 创建人
     */
    @ApiModelProperty (value = "创建人")
    private String createBy;
    /**
     * 创建日期
     */
    @JsonFormat (timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat (pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty (value = "创建日期")
    private Date createTime;
    /**
     * 更新人
     */
    @ApiModelProperty (value = "更新人")
    private String updateBy;
    /**
     * 更新日期
     */
    @JsonFormat (timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat (pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty (value = "更新日期")
    private Date updateTime;
    /**
     * 所属部门
     */
    @ApiModelProperty (value = "所属部门")
    @Dict (dictTable = "sys_depart", dicText = "depart_name", dicCode = "org_code")
    private String sysOrgCode;
    /**
     * 姓名
     */
    @Excel (name = "*姓名", width = 15)
    @ApiModelProperty (value = "姓名")
    private String name;
    /**
     * 手机号
     */
    @Excel (name = "*手机号", width = 15)
    @ApiModelProperty (value = "手机号")
    private String phone;
    /**
     * 昵称
     */
    @Excel (name = "昵称", width = 15)
    @ApiModelProperty (value = "昵称")
    private String nickName;
    /**
     * 头像
     */
    @Excel (name = "头像", width = 15)
    @ApiModelProperty (value = "头像")
    private String avatar;
    /**
     * 父级居民Id，家人的概念
     */
    @ApiModelProperty (value = "父级居民Id，家人的概念")
    private String parentId;
    /**
     * 身份证号
     */
    @Excel (name = "*身份证号", width = 15)
    @ApiModelProperty (value = "身份证号")
    private String idCard;
    /**
     * 出生日期
     */
    @Excel (name = "出生日期", width = 20, format = "yyyy-MM-dd")
    @JsonFormat (timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat (pattern = "yyyy-MM-dd")
    @ApiModelProperty (value = "出生日期")
    private Date birthday;
    /**
     * 性别:(0男1女2未知)
     */
    @Excel (name = "性别:(0男1女2未知)", width = 15, dicCode = "member_sex")
    @Dict (dicCode = "member_sex")
    @ApiModelProperty (value = "性别:(0男1女2未知)")
    private Integer sex;
    /**
     * 机构编号(选的是村卫生中心)
     */
    @ApiModelProperty (value = "机构编号(选的是村卫生中心)")
    private String deptId;
    /**
     * 详细地址
     */
    @Excel (name = "详细地址", width = 15)
    @ApiModelProperty (value = "详细地址")
    private String address;
    /**
     * 身高
     */
    @Excel (name = "身高", width = 15)
    @ApiModelProperty (value = "身高")
    private Integer height;
    /**
     * 体重
     */
    @Excel (name = "体重", width = 15)
    @ApiModelProperty (value = "体重")
    private Integer weight;
    /**
     * 体质指数
     */
    @Excel (name = "体质指数", width = 15)
    @ApiModelProperty (value = "体质指数")
    private Double bmi;
    /**
     * 腰围
     */
    @Excel (name = "腰围", width = 15)
    @ApiModelProperty (value = "腰围")
    private Double waistline;
    /**
     * 吸烟情况(0是1否)
     */
    @Excel (name = "吸烟情况(0是1否)", width = 15, dicCode = "member_smoking")
    @Dict (dicCode = "member_smoking")
    @ApiModelProperty (value = "吸烟情况(0是1否)")
    private Integer smoking;
    /**
     * 饮酒情况(0是1否)
     */
    @Excel (name = "饮酒情况(0是1否)", width = 15, dicCode = "member_drinking")
    @Dict (dicCode = "member_drinking")
    @ApiModelProperty (value = "饮酒情况(0是1否)")
    private Integer drinking;
    /**
     * 三高标签:(0高血压1高血糖2高血脂)
     */
    @Excel (name = "三高标签:(0高血压1高血糖2高血脂)", width = 15, dicCode = "member_three_tag")
    @Dict (dicCode = "member_three_tag")
    @ApiModelProperty (value = "三高标签:(0高血压1高血糖2高血脂)")
    private String threeTag;
    /**
     * 来源
     */
    @Dict (dicCode = "member_source")
    @ApiModelProperty (value = "来源")
    private Integer source;
    /**
     * 依从性:(0良1一般2差3很差)
     */
    @Excel (name = "依从性:(0良1一般2差3很差)", width = 15, dicCode = "member_compliance")
    @Dict (dicCode = "member_compliance")
    @ApiModelProperty (value = "依从性:(0良1一般2差3很差)")
    private Integer compliance;
    /**
     * 备注
     */
    @Excel (name = "备注", width = 15)
    @ApiModelProperty (value = "备注")
    private String remark;
    /**
     * 是否管理
     */
    @Dict (dicCode = "member_status")
    @ApiModelProperty (value = "是否管理")
    private Integer status;
    /**
     * 小程序用户唯一编号
     */
    @ApiModelProperty (value = "小程序用户唯一编号")
    private String openId;
    /**
     * 舒张压预警值
     */
    @Excel (name = "舒张压最低预警值", width = 15)
    @ApiModelProperty (value = "舒张压预警值")
    private Double dbpvalMax;
    /**
     * 舒张压预警值
     */
    @Excel (name = "舒张压预最高警值", width = 15)
    @ApiModelProperty (value = "舒张压预警值")
    private Double dbpvalMin;
    /**
     * 收缩压预警值
     */
    @Excel (name = "收缩压最低预警值", width = 15)
    @ApiModelProperty (value = "收缩压预警值")
    private Double sbpvalMax;
    /**
     * 收缩压预警值
     */
    @Excel (name = "收缩压最高预警值", width = 15)
    @ApiModelProperty (value = "收缩压预警值")
    private Double sbpvalMin;
    /**
     * 体脂预警值
     */
    @Excel (name = "体脂最低预警值", width = 15)
    @ApiModelProperty (value = "体脂预警值")
    private Double bodyfatMax;
    /**
     * 体脂预警值
     */
    @Excel (name = "体脂最高预警值", width = 15)
    @ApiModelProperty (value = "体脂预警值")
    private Double bodyfatMin;
    /**
     * 血糖预警值
     */
    @Excel (name = "血糖最低预警值", width = 15)
    @ApiModelProperty (value = "血糖预警值")
    private Double sugarMax;
    /**
     * 血糖预警值
     */
    @Excel (name = "血糖最高预警值", width = 15)
    @ApiModelProperty (value = "血糖预警值")
    private Double sugarMin;
    /**
     * 血脂预警值
     */
    @Excel (name = "血脂最低预警值", width = 15)
    @ApiModelProperty (value = "血脂预警值")
    private Double bloodMax;
    /**
     * 血脂预警值
     */
    @Excel (name = "血脂最高预警值", width = 15)
    @ApiModelProperty (value = "血脂预警值")
    private Double bloodMin;
    /**
     * 行政区划
     */
    @Excel (name = "行政区划", width = 15)
    @ApiModelProperty (value = "行政区划")
    private String region;
    /**
     * 逻辑删除标志
     */
    @ApiModelProperty (value = "逻辑删除标志")
    @TableLogic
    private Integer delFlag;
    /**
     * 所属医生
     */
    @Dict (dictTable = "sys_user", dicText = "realname", dicCode = "id")
    @ApiModelProperty (value = "所属医生")
    private String doctorId;
    /**
     * 所属医生
     */
    @Excel (name = "所属医生", width = 15)
    @TableField (exist = false)
    private String doctorName;
    /**
     * 类型
     */
    @Excel (name = "*类型(0居民1职工)", width = 15)
    @ApiModelProperty (value = "类型(0居民1职工)")
    private Integer type;
    /**
     * 是否发放过药品
     */
    @ApiModelProperty (value = "是否发放过药品 0是 1否")
    private Integer sendDrug;
    /**
     * 是否再管
     */
    @ApiModelProperty (value = "是否发放过药品 0是 1否")
    private Integer manageTop;
    /**
     * 紧急联系人姓名
     */
    @ApiModelProperty (value = "紧急联系人姓名")
    @Excel (name = "紧急联系人姓名", width = 15)
    private String urgentName;
    /**
     * 紧急联系人手机号
     */
    @ApiModelProperty (value = "紧急联系人手机号")
    @Excel (name = "紧急联系人手机号", width = 15)
    private String urgentPhone;
    /**
     * 与患者关系(0亲人1朋友)
     */
    @ApiModelProperty (value = "与患者关系")
    private Integer urgentRelation;
    /**
     * 健康币
     */
    @ApiModelProperty (value = "健康币")
    private Integer currency;

    /**
     * 知情同意书-签字-居民签字
     */
    @ApiModelProperty (value = "知情同意书-居民签字")
    private String icfMemberSign;

    /**
     * 知情同意书-签字-证明人签字
     */
    @ApiModelProperty (value = "知情同意书-证明人签字")
    private String icfRefereeSign;

    /**
     * 测试数据
     */
    @ApiModelProperty (value = "测试数据(1是)")
    private int IsTest;

    @TableField (exist = false)
    private String isDown;


    /**
     * 血压计设备名称
     */
    @TableField (exist = false)
    @Excel (name = "血压计设备名称", width = 15)
    @ApiModelProperty (value = "血压计设备名称")
    private String YDevice;

    /**
     * 血压计设备编码
     */
    @TableField (exist = false)
    @Excel (name = "血压计设备编码", width = 15)
    @ApiModelProperty (value = "血压计设备编码")
    private String YModel;

    /**
     * 血糖仪设备名称
     */
    @TableField (exist = false)
    @Excel (name = "血糖仪设备名称", width = 15)
    @ApiModelProperty (value = "血糖仪设备名称")
    private String TDevice;

    /**
     * 血压计设备编码
     */
    @TableField (exist = false)
    @Excel (name = "血糖仪设备编码", width = 15)
    @ApiModelProperty (value = "血糖仪设备编码")
    private String TModel;

    @TableField (exist = false)
    @Excel (name = "建档单位", width = 15)
    private String ModeladdName;

    @TableField (exist = false)
    private String deviceId;

    /**
     * 标识是血糖仪还是血压仪
     */
    @TableField (exist = false)
    private int deviceType;

    /**
     * 标识是否绑定设备
     */
    @TableField (exist = false)
    private boolean Bindstatus;

    @TableField(exist = false)
    private List<String> responsibleAgencies;

    @TableField(exist = false)
    private String updId;
}
